<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 6/2/12
 * Time: 10:21 AM
 * To change this template use File | Settings | File Templates.
 */
?>


<script>
    $(function () {
        $("#datepicker").datepicker();
    });
</script>

<?php
echo $this->Form->create('HoaDonNhap', array('action' => 'edit', 'style' => 'text-align: center;'));
?>
<fieldset>
    <legend><label>Thêm hóa đơn nhập</label></legend>

    <?php echo $this->Form->input('id', array('label' => false, 'readonly' => true)); ?>

    <dl>
        <dt><label>Mã nhân viên</label></dt>
        <dd><?php echo $this->Form->input('MANV', array('readonly' => true, 'label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>ID khách hàng </label></dt>
        <dd><?php echo $this->Form->input('MAKH', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Ngày nhập</label></dt>
        <dd><?php echo $this->Form->input('NGAYNHAP', array('id' => 'datepicker', 'type' => 'text', 'label' => false, 'readonly' => true)); ?></dd>
    </dl>
    <dl>
        <dt><label>Thuế nhập (%)</label></dt>
        <dd><?php echo $this->Form->input('THUENHAP', array('label' => false)); ?></dd>
    </dl>
</fieldset>
<div class="button">
    <?php
echo $this->Form->submit('Lưu', array('div' => false));
echo $this->Html->Link('Hủy', array('controller' => 'hoa_don_nhaps', 'action' => 'index'), array('class' => 'cancel'));
echo $this->Form->end();
?>
</div>